
import com.myioc.myClassPathContext.MyClassPathApplicationContext;
import com.myioc.service.UserService;

public class Test001 {

	public static void main(String[] args) throws Exception {

		String strs[]={"com.myioc.myAnnotation.MyAtn"};
		MyClassPathApplicationContext app = new MyClassPathApplicationContext("com.myioc.service.impl",strs);
		UserService userService = (UserService) app.getBean("userServiceImpl");
		userService.add();
	}

}
